package com.wander.business.book.c2_2_3.config;

import com.wander.business.book.c2_2_3.service.BeanWayService;
import com.wander.business.book.c2_2_3.service.JSR250WayService;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * @author Wander.Zeng
 * @create 2017-10-15 15:19
 * @desc BookConfig_c2_2_3
 */
@Configuration
@ComponentScan("com.wander.business.book.c2_2_3")
public class BookConfig_c2_2_3 {

    @Bean(initMethod = "init", destroyMethod = "destory")
    public BeanWayService beanWayService() {
        return new BeanWayService();
    }

    @Bean
    public JSR250WayService jsr250WayService() {
        return new JSR250WayService();
    }

}
